module EmployeePositionJsonSerializer
  def self.as_json employee_position
    employee_position.to_json(include: [:position, :employee, :organization])
  end

  def self.index_json employee_positions
    employee_positions.map { |e| JSON.parse(as_json e) }
  end
end